function object=fitness(mcs)
    global TBS KS TPC ALP s SIG;
    try  
        RB=getRBfromMCS(mcs);
        W=combineMCSAndRBS(mcs,RB);
        f1=0;
        f2=0;
        for k=1:KS
            m=W(k,1);
            r=W(k,2);
            f1=f1+TBS(ceil(r),ceil(m));
            f2=f2+(100+ALP*s(k)+10*log10(r)+SIG(ceil(m))+TPC);
        end
        object=f1/f2;
    catch err
        object=0;
    end
end